﻿using System;
using System.Collections.Generic;
using System.Collections;
using Microsoft.Practices.EnterpriseLibrary.Caching;

namespace PJ.Data.Inventory
{
    public class InventoryBarCodeCache : EntityFragmentCache<IInventoryBarCodeData>, IInventoryBarCodeCache<IInventoryBarCodeData>
    {
        public InventoryBarCodeCache(ICacheManager cache)
            : base(cache)
        {
        }


        public IInventoryBarCodeData FindById(string entityId)
        {
            return FindByKey("Id", entityId);
        }

        IEntityData IEntityCache.FindById(string id)
        {
            return FindById(id);
        }
    }
}
